<?php

	namespace org\tekuna\demo\weblog;
	
	use org\tekuna\framework\filter\Filter;

	
	class ArticleKeyFilter implements Filter {
		
		/**
		 * allows only 
		 *   - a-z
		 *   - 0-0
		 *   - _
		 *   - -
		 */
		public function filter($mInput) {

			return preg_replace('~[^a-z0-9\-_]~', '', $mInput);
		}		
	}
